package com.hxzy.service;

import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.github.pagehelper.PageInfo;
import com.hxzy.controller.vue.employee.req.EmployeeReq;
import com.hxzy.controller.vue.employee.resp.EmployeeResp;
import com.hxzy.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 11452
* @description 针对表【employee(后台管理员表)】的数据库操作Service
* @createDate 2023-08-28 11:54:55
*/
public interface EmployeeService extends IService<Employee> , VueLoginService {

    /**
     * 分页查询
     * @param req
     * @return
     */
    PageInfo<EmployeeResp> search(EmployeeReq req);

    /**
     * 查询值是否存在
     * @param column
     * @param value
     * @param primaryKeyValue
     * @return
     */
    boolean existsValue(SFunction<Employee,?> column, String value,Object primaryKeyValue);

    /**
     * 更改密码
     * @param id
     * @param password
     * @return
     */
    boolean changePassword(Long id, String password);

    /**
     * excel查询下载
     * @param req
     * @return
     */
    List<Employee> excelDownload(EmployeeReq req);
}
